// 路由文件
import {
    UploadOutlined,
    UserOutlined,
    VideoCameraOutlined,
} from '@ant-design/icons';

import User from '../views/user/User'
import Admin from '../views/user/Index'

import Banner from '../views/banner/Index'
import AddBanner from '../views/banner/Add'

import Pro from '../views/pro/Index'
import Recommend from '../views/pro/Recommend'

import Data from '../views/data/Index'

import Editor from '../views/editor/Index'
import Md from '../views/editor/Md'

import Import from '../views/excel/Import'
import Export from '../views/excel/Export'

import Map from '../views/map/Index'

const menus = [
    {
        key: '/',
        icon: <UserOutlined />,
        label: '系统首页',
        title: '系统首页'
    },
    {
        key: '/user',
        icon: <VideoCameraOutlined />,
        label: '账号管理',
        children: [
            {
                key: '/user/list',
                icon: <UserOutlined />,
                label: '用户列表',
                element: <User />
            },
            {
                key: '/user/admin',
                icon: <UserOutlined />,
                label: '管理员列表',
                element: <Admin />
            }
        ]
    }, {
        key: '/banner',
        icon: <VideoCameraOutlined />,
        label: '轮播图管理',
        children: [
            {
                key: '/banner/list',
                icon: <UserOutlined />,
                label: '轮播图列表',
                element: <Banner />
            },
            {
                key: '/banner/add',
                icon: <UserOutlined />,
                label: '添加轮播图',
                element: <AddBanner />
            }
        ]
    }, {
        key: '/pro',
        icon: <VideoCameraOutlined />,
        label: '商品管理',
        children: [
            {
                key: '/pro/list',
                icon: <UserOutlined />,
                label: '商品列表',
                element: <Pro />
            },
            {
                key: '/pro/recommend',
                icon: <UserOutlined />,
                label: '推荐列表',
                element: <Recommend />
            }
        ]
    }, {
        key: '/data',
        icon: <VideoCameraOutlined />,
        label: '数据可视化',
        children: [
            {
                key: '/data/antd',
                icon: <UserOutlined />,
                label: '数据展示',
                element: <Data />
            }
        ]
    }, {
        key: '/editor',
        icon: <VideoCameraOutlined />,
        label: '编辑器管理',
        children: [
            {
                key: '/editor/index',
                icon: <UserOutlined />,
                label: '富文本编辑器',
                element: <Editor />
            },
            {
                key: '/editor/md',
                icon: <UserOutlined />,
                label: 'MD 编辑器',
                element: <Md />
            }
        ]
    }, {
        key: '/excel',
        icon: <VideoCameraOutlined />,
        label: '文件管理',
        children: [
            {
                key: '/excel/import',
                icon: <UserOutlined />,
                label: '文件导入',
                element: <Import />
            },
            {
                key: '/excel/export',
                icon: <UserOutlined />,
                label: '文件导出',
                element: <Export />
            }
        ]
    }, {
        key: '/map',
        icon: <VideoCameraOutlined />,
        label: '地图管理',
        children: [
            {
                key: '/map/index',
                icon: <UserOutlined />,
                label: '高德地图',
                element: <Map />
            }
        ]
    },

]


export default menus